package com.yu.oss.service.impl;

import com.yu.oss.entity.FileInfo;
import com.yu.oss.service.StorageService;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 路亚
 * @version 0.1
 * @className AliStorageServiceImpl
 * @description
 * @date 2025/1/9 20:26
 * @since jdk11
 */
@Service
public class AliStorageServiceImpl implements StorageService {
    @Override
    public void createBucket(String bucket) {

    }

    @Override
    public void uploadFile(MultipartFile uploadFile, String bucket, String objectName) {

    }

    @Override
    public List<String> getAllBucket() {
        List<String> list = new ArrayList<>();
        list.add("aliyun bucket");
        return list;
    }

    @Override
    public List<FileInfo> getAllFile(String bucket) {
        return null;
    }

    @Override
    public InputStream downLoad(String bucket, String objectName) {
        return null;
    }

    @Override
    public void deleteBucket(String bucket) {

    }

    @Override
    public void deleteObject(String bucket, String objectName) {

    }

    @Override
    public String getPreviewFileUrl(String bucketName, String objectName) {
        return null;
    }
}
